.device-list {
  height: 300px;
  overflow-x: hidden;
  overflow-y: scroll;
  &:deep .ant-tree {
    background-color: transparent !important;
    color: #fff;
    .ant-tree-node-content-wrapper.ant-tree-node-selected {
      background-color: transparent;
    }
    .ant-tree-indent {
      display: none;
    }
    .device-node {
      display: flex;
      align-items: center;
      img {
        width: 16px;
        height: 16px;
        margin-right: 5px;
      }
      .device-name {
        width: 125px;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        word-break: break-all;
      }
    }
  }
}

/* 为 WebKit 浏览器自定义滚动条 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.4);
}
